def print_christmas_tree(height):
    # 打印树冠部分
    for i in range(height):
        print(' ' * (height - i - 1) + '*' * (2 * i + 1))

    # 打印树干部分
    trunk_width = height // 3 if height % 3 == 0 else height // 3 + 1
    trunk_height = height // 4 if height % 4 == 0 else height // 4 + 1
    trunk_space = (2 * height - 1 - trunk_width) // 2

    for _ in range(trunk_height):
        print(' ' * trunk_space + '*' * trunk_width)

